{include file="index/head" /}
<div class="box auto">
  <form method="post" action="" class="sycmsform">
    <div class="box-head"> 生成列表 </div>
    <div class="form">
      <ul>
         <li>
          <label>生成电脑端或移动端：</label>
          <div class="item">
            <div class="select"><i class="icon-caret-down"></i>
              <input type="hidden" name="htmlpath" value="0" class="inputval" />
              <input type="text" readonly="readonly" class="input"  placeholder="请选择生成电脑端或移动端"/>
              <dl class="select-value syui-anim syui-anim-up">
                <dd data="0" class=selected>电脑端</dd>
                <dd data="1">移动端</dd>
              </dl>
            </div>          
          </div>
        </li>
        <li>
          <label>请选择栏目：</label>
          <div class="item">
            <div class="select"><i class="icon-caret-down"></i>
              <input type="hidden" name="nid" value="0" class="inputval" />
              <input type="text" readonly="readonly" class="input"  placeholder="请选择栏目"/>
              <dl class="select-value syui-anim syui-anim-up">
                <dd data="0">生成所有栏目</dd>
                {volist name="list" id="vo"}
                <dd data="{$vo.id}">{$vo.title}</dd>
                {/volist}
              </dl>
            </div> 
            <span class="tips">不选择默认生成所有栏目</span>           
          </div>
        </li>
        <li>
          <label>&nbsp;</label>
          <div class="item">
            <button type="button" onclick="createHtml()" class="button"><i class="icon-check"></i>点击生成列表</button>
          </div>
        </li>
      </ul>
    </div>
  </form>
</div>

<script>
function createHtml(){
	var nid = $("input[name=nid]").val();
	var htmlpath = $("input[name=htmlpath]").val();
	layer.open({
		type:2,
		title:'开始生成列表...',
		area: ['650px', '400px'],
		content:'{:url("Chtml/process")}?process_nid='+nid+'&htmlpath='+htmlpath
	})
}
</script>
